package com.hwg.shiliupro.service.Impl;



import com.hwg.shiliupro.dao.RolePermissionMapper;
import com.hwg.shiliupro.po.RolePermission;
import com.hwg.shiliupro.service.RolePermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RolePermissionServiceImpl implements RolePermissionService {
    @Autowired
    private RolePermissionMapper rolePermissionMapper;

    /**
     * 根据角色id查询出 角色--权限表信息
     *
     * @param rId r id
     * @return {@link List}<{@link RolePermission}>
     */
    @Override
    public List<RolePermission> selectPermissionsByRid(Integer rId) {
        List<RolePermission> rolePermissions = rolePermissionMapper.selectPermissionsByRid(rId);
        return rolePermissions;
    }
}
